// 时间处理
export function formatTime(timestramp) {  
    const nowDate = new Date(Number(timestramp));
    const year = nowDate.getFullYear();
    let month = handleTime(nowDate.getMonth() + 1);
    let date = handleTime(nowDate.getDate());
    return `${year}-${month}-${date}`
}
// 时间处理
function handleTime(time) {
    return time < 10 ? '0' + time : time;
}